package com.hltx.interceptor;



import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class RegisterSecurityInterceptor extends HandlerInterceptorAdapter {
	
	
	@Override
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
		response.setContentType("text/html;charset=UTF-8");
		String contextPath = request.getContextPath();
		try {
			response.sendRedirect("friend/toRegister");
			return false;
		}catch(Exception e){
			return false;
		}
	}
}
